<template>
  <div>
    <!-- 在自己内部自己调用自己 -->
    <componentChild v-if="count<3" :count="count+1"></componentChild>
  </div>
</template>

<script>
export default {
  name: 'componentChild',
  props: {
    count: {
      type: Number,
      default: 1
    },

  },
  data () {
    return {

    }
  },
  created () {
    //console.log(this.count) //打印出 123 
  },
  methods: {

  }
}
</script>
